<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../jquery.js"></script>
    <link href="../css/重置密码.css" rel="stylesheet"/>
    <script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no, viewport-fit=cover">
</head>
<body>
<form class="box">
    <div class="wjmm"><a href="javascript:history.back()" class="fhjt"></a><div class="box2">设置密码</div></div>

    <input placeholder="设置密码（字母、数字或符号组成，长度为6-16个字符）" id="newPwd"/>
    <div>
    <input id="queren" type="button" value="确 认" onclick="setNewPwd()"/>
    </div>
</form>
<script>
    function setNewPwd(){
        $.post("http://localhost/shop/updateuserpwd",
            {phone:localStorage.getItem("currentPhone"),
            newPwd:newPwd.value},
            function(data){
                if(data=="Saved"){
                    alert("修改密码成功！");
                }
            });
    }
</script>
</body>
</html>